<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<style>
    *{
        padding: 0;
        margin: 0;
    }
    html,body{
        width: 100%;
        height: 100%;
        
    }
    body{
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        background-color: bisque;
    }
    .heart{
        width: 200px;
        height: 200px;
        background-color: pink;
        position: relative;
        transform: rotate(45deg);/*顺时针旋转45度*/
        box-shadow: 0 0 20px pink;
        animation: name 1s linear 0s infinite alternate ;
    }
    .heart::before{
        content: '';
        width: 100px;
        height: 200px;
        background-color: coral;
        position: absolute;
        left: -99px;
        top: 0;
        border-radius:100px 0  0 100px;
        box-shadow: 0 0 20px coral;
    }
    .heart::after{
         content: '';
        width: 200px;
        height: 100px;
        background-color: coral;
        position: absolute;
        left: 0px;
        top: -99px;
        border-radius: 100px 100px 0 0;
        box-shadow: 0 0 20px coral;
    }
    @keyframes name{
        from{
            transform: rotate(45deg) scale(0.6);
        }
        to{
            transform: rotate(45deg) scale(1.2);
        }
    }
</style>
<body>
    <div class="heart"></div>
</body>
</html>